import Vue from 'vue'
import VueRouter from 'vue-router'
import RecommendedView from '../views/RecommendedView.vue'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    name: 'recommended',
    component: RecommendedView,
    meta:{isShowNav:true}
  },
  {
    path: '/hot',
    name: 'hot',
    component: () => import('@/views/HotView.vue'),
    meta:{isShowNav:true}
  },
  {
    path: '/search',
    name: 'search',
    component: () => import('@/views/SearchView.vue'),
    meta:{isShowNav:true}
  },
  {
    path: '/listen',
    name: 'listen',
    component: () => import('@/views/ListenView.vue')
  },
  {
    path: '/playlist',
    name: 'playlist',
    component: () => import('@/views/PlaylistView.vue')
  },
  {
    path:"/download",
    name:"download",
    component:()=>import("@/views/DownLoadView.vue")
  },
  {
    path:"/singer",
    name:"singer",
    component:()=>import("@/views/SingerView.vue")
  },
  {
    path: '*',
    redirect: '/'
  },
]

const router = new VueRouter({
  routes
})

export default router